import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-invite-project',
  templateUrl: './invite-project.component.html',
  styleUrls: ['./invite-project.component.scss']
})
export class InviteProjectComponent implements OnInit {
  items = [
    {
      id:1,
      name:'zhang'
    },
    {
      id:2,
      name:'li'
    },
    {
      id:3,
      name:'wang'
    }
  ]

  constructor() { }

  ngOnInit() {
  }
  displayUser(user:User){
    return user ? user.name : '';
  }
  onClick(){

  }
}
export interface User{
  id:string;
  name:string
}
